<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <title>美和易思</title>
    <meta name="description" content="美和易思">
    <meta name="keywords" content="美和易思">
    <meta name="author" content="qz">

    <link href="./image/favicon.ico" rel="icon" type="image/x-icon">
    <link href="./css/bootstrap.min.css" rel="stylesheet" />
    <link href="./js/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="./js/owl.carousel/assets/owl.theme.default.min.css" rel="stylesheet">
    <link href="./css/video-js.min.css" rel="stylesheet">
    <link href="./css/animate.css" rel="stylesheet" />
    <link href="./css/reset.css" rel="stylesheet" />
    <link href="./css/common1.css" rel="stylesheet" />
    <link href="./css/index.css" rel="stylesheet" />
    
    <link href="css/header_other.css" rel="stylesheet" />
    <link href="css/about.css" rel="stylesheet" />
    
    
</head>

<body>
    
    <header></header>
    
    <!--内容区域-->
    <div class="cont">
    	<!--大图-->
    	<div class="about-banner new-banner">
    		<div class="about-banner-bg-text">
    			<!--<img src="image/news-bg.png" />-->
    		</div>
    	</div>
    	
    	<!--
        	作者：809258132@qq.com
        	时间：2018-08-11
        	描述：菜单切换
        -->
        <div class="about-container">

			  <!-- Nav tabs -->
			  <div class="about-us-nav">
			  	<ul class="nav nav-tabs news" role="tablist">
				    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">公司新闻</a></li>
				    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">院校新闻</a></li>
				    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">行业新闻</a></li>
				    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">媒体报道</a></li>
				  </ul>
			  </div>
			
			  <!-- Tab panes -->
			  <div class="tab-content about-us">
			  	<!--公司新闻-->
			    <div role="tabpanel" class="tab-pane active company-dang news-cont" id="home">
			    	<!--内容栏-->
			    	<div class="company-dang-conts">
			    		<ul id="gsxwnews_view">
			    			
			    		</ul>
			    	</div>
			    	<!--分页-->
			    	<div class="about-us-page">
                        <p class="about-us-page-p">
			    			共<span id="gsxwpage_count">5</span>页，当前<span id="gsxwpage_index">1</span>页
			    		</p>
			    		<ul class="about-us-page-ul">
			    			<li>
			    				<a href="javascript:get_gsxwnews(1);gsxwpage_index = 1;">首页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_gsxwnews(--gsxwpage_index);">上一页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_gsxwnews(++gsxwpage_index);">下一页</a>
			    			</li>
			    			<li>
			    				<a id="gsxwlast" href="javascript:get_gsxwnews(gsxwpage_count);">末页</a>
			    			</li>
			    		</ul>
			    	</div>
			    </div>
			    <!--院校新闻-->
			    <div role="tabpanel" class="tab-pane oagan-us  news-cont" id="profile">
			    	<!--内容栏-->
			    	<div class="company-dang-conts">
			    		<ul id="yxxwnews_view">
			    			
			    		</ul>
			    	</div>
			    	<!--分页-->
			    	<div class="about-us-page">
                        <p class="about-us-page-p">
			    			共<span id="yxxwpage_count">5</span>页，当前<span id="yxxwpage_index">1</span>页
			    		</p>
			    		<ul class="about-us-page-ul">
			    			<li>
			    				<a href="javascript:get_yxxwnews(1);yxxwpage_index = 1;">首页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_yxxwnews(--yxxwpage_index);">上一页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_yxxwnews(++yxxwpage_index);">下一页</a>
			    			</li>
			    			<li>
			    				<a id="yxxwlast" href="javascript:get_yxxwnews(yxxwpage_count);">末页</a>
			    			</li>
			    		</ul>
			    	</div>
			    </div>
			    <!--行业新闻-->
			    <div role="tabpanel" class="tab-pane company-culture  news-cont" id="messages">
			    	<!--内容栏-->
			    	<div class="company-dang-conts">
			    		<ul id="hyxwnews_view">
			    			
			    		</ul>
			    	</div>
			    	<!--分页-->
			    	<div class="about-us-page">
                        <p class="about-us-page-p">
			    			共<span id="hyxwpage_count">5</span>页，当前<span id="hyxwpage_index">1</span>页
			    		</p>
			    		<ul class="about-us-page-ul">
			    			<li>
			    				<a href="javascript:get_hyxwnews(1);hyxwpage_index = 1;">首页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_hyxwnews(--hyxwpage_index);">上一页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_hyxwnews(++hyxwpage_index);">下一页</a>
			    			</li>
			    			<li>
			    				<a id="A1" href="javascript:get_hyxwnews(hyxwpage_count);">末页</a>
			    			</li>
			    		</ul>
			    	</div>
			    </div>
			    <!--媒体报道-->
			    <div role="tabpanel" class="tab-pane company-dang  news-cont" id="settings">
			    	<!--内容栏-->
			    	<div class="company-dang-conts">
			    		<ul id="mtbdnews_view">
			    			
			    		</ul>
			    	</div>
			    	<!--分页-->
			    	<div class="about-us-page">
                        <p class="about-us-page-p">
			    			共<span id="mtbdpage_count">5</span>页，当前<span id="mtbdpage_index">1</span>页
			    		</p>
			    		<ul class="about-us-page-ul">
			    			<li>
			    				<a href="javascript:get_mtbdnews(1);mtbdpage_index = 1;">首页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_mtbdnews(--mtbdpage_index);">上一页</a>
			    			</li>
			    			<li>
			    				<a href="javascript:get_mtbdnews(++mtbdpage_index);">下一页</a>
			    			</li>
			    			<li>
			    				<a id="A2" href="javascript:get_mtbdnews(mtbdpage_count);">末页</a>
			    			</li>
			    		</ul>
			    	</div>

			    </div>
			  </div>
		
		</div>
        
        
    </div>


    <!-- 底部begin -->
    <footer></footer>

    <script src="./js/jquery-2.1.4.min.js "></script>
    <script src="./js/bootstrap.min.js "></script>
    <script src="./js/owl.carousel/owl.carousel.min.js "></script>
    <script src="./js/rx/rx.js"></script>
    
    <script src="js/anchor.js"></script>
    
    <script type="text/javascript">
        $(function () {
           
            $("footer").load("foot.html");
            $("header").load("head.html");
            
            //更改logo
           setTimeout(function(){
           	   $(".navbar-brand").attr("src", './image/footer-logo.png');
           	   $(".dropdown").removeClass("active");
           	   $(".dropdown").eq(2).addClass("active");
           }, 100)
           
           var id = window.location.toString().split("#")[1];
           var obj = {
				"news_one" : 0,
				"news_two" : 1,
				"news_three" : 2,
				"news_four" : 3,
			}
           $(".news li").removeClass("active");
		   $(".news li").eq(obj[id]).addClass("active");
           
           $(".news-cont").removeClass("active");
           $(".news-cont").eq(obj[id]).addClass("active");
        });

        var gsxwpage_index = 1;
        var gsxwpage_size = 8;
        var gsxwpage_count = 0;

        function get_gsxwnews(gsxwpage_index) {
            if (gsxwpage_count != 0) {
                if (gsxwpage_index > gsxwpage_count) gsxwpage_index = gsxwpage_count
                else if (gsxwpage_index <= 1) gsxwpage_index = 1;
            }
            $.ajax({
                url: "http://139.129.33.42/admin/GetNewsServlet",
                data: {
                    type: 5,
                    currentPage: gsxwpage_index,
                    pageSize: gsxwpage_size
                },
                type: "get",
                success: function (data) {
                    gsxwpage_count = Math.ceil(data[0].pageCount / gsxwpage_size);

                    $("#gsxwpage_count").html(gsxwpage_count);
                    $("#gsxwpage_index").html(gsxwpage_index);

                    $("#gsxwlast").attr("href", "javascript:get_gsxwnews(" + data[0].pageCount + ");gsxwpage_index = " + data[0].pageCount + ";")
//                  console.info(data)
                    data = data[0].date;
                    var str = "";
                    for (var i = 0; i < data.length; i++) {
                        str += ['<li>',
                        '<a href="news_details.html?id=' + data[i].id + '">',
                        '<!--时间-->',
                        '<div class="company-dang-conts-time">',
                        '<ul>',
                        '<li class="year">' + data[i].temp2 + '</li>',
                        '<li class="otherTime">' + data[i].temp3 + '</li>',
                        '</ul>',
                        '</div>',
                        '<!--内容-->',
                        '<div class="company-dang-conts-details">',
                        '<h5>',
                        data[i].title,
                        '</h5>',
                        '<p>',
                        data[i].temp1,
                        '</p>',
                        '</div>',
                        '</a>',
                        '</li>'].join("");
                    }
                    $("#gsxwnews_view").html(str);

                },
                error: function (e) {
                    console.error(e);
                }
            });
        }
        get_gsxwnews(gsxwpage_index);

        var yxxwpage_index = 1;
        var yxxwpage_size = 8;
        var yxxwpage_count = 0;

        function get_yxxwnews(yxxwpage_index) {
            if (yxxwpage_count != 0) {
                if (yxxwpage_index > yxxwpage_count) yxxwpage_index = yxxwpage_count
                else if (yxxwpage_index <= 1) yxxwpage_index = 1;
            }
            $.ajax({
                url: "http://139.129.33.42/admin/GetNewsServlet",
                data: {
                    type: 6,
                    currentPage: yxxwpage_index,
                    pageSize: yxxwpage_size
                },
                type: "get",
                success: function (data) {
                    yxxwpage_count = Math.ceil(data[0].pageCount / yxxwpage_size);

                    $("#yxxwpage_count").html(yxxwpage_count);
                    $("#yxxwpage_index").html(yxxwpage_index);

                    $("#yxxwlast").attr("href", "javascript:get_yxxwnews(" + data[0].pageCount + ");yxxwpage_index = " + data[0].pageCount + ";")
//                  console.info(data)
                    data = data[0].date;
                    var str = "";
                    for (var i = 0; i < data.length; i++) {
                        str += ['<li>',
                        '<a href="news_details.html?id=' + data[i].id + '">',
                        '<!--时间-->',
                        '<div class="company-dang-conts-time">',
                        '<ul>',
                        '<li class="year">' + data[i].temp2 + '</li>',
                        '<li class="otherTime">' + data[i].temp3 + '</li>',
                        '</ul>',
                        '</div>',
                        '<!--内容-->',
                        '<div class="company-dang-conts-details">',
                        '<h5>',
                        data[i].title,
                        '</h5>',
                        '<p>',
                        data[i].temp1,
                        '</p>',
                        '</div>',
                        '</a>',
                        '</li>'].join("");
                    }
                    $("#yxxwnews_view").html(str);

                },
                error: function (e) {
                    console.error(e);
                }
            });
        }
        get_yxxwnews(yxxwpage_index);

        var hyxwpage_index = 1;
        var hyxwpage_size = 8;
        var hyxwpage_count = 0;

        function get_hyxwnews(hyxwpage_index) {
            if (hyxwpage_count != 0) {
                if (hyxwpage_index > hyxwpage_count) hyxwpage_index = hyxwpage_count
                else if (hyxwpage_index <= 1) hyxwpage_index = 1;
            }

            $.ajax({
                url: "http://139.129.33.42/admin/GetNewsServlet",
                data: {
                    type: 7,
                    currentPage: hyxwpage_index,
                    pageSize: hyxwpage_size
                },
                type: "get",
                success: function (data) {
                    hyxwpage_count = Math.ceil(data[0].pageCount / hyxwpage_size);

                    $("#hyxwpage_count").html(hyxwpage_count);
                    $("#hyxwpage_index").html(hyxwpage_index);

                    $("#hyxwlast").attr("href", "javascript:get_hyxwnews(" + data[0].pageCount + ");hyxwpage_index = " + data[0].pageCount + ";")
//                  console.info(data)
                    data = data[0].date;
                    var str = "";
                    for (var i = 0; i < data.length; i++) {
                        str += ['<li>',
                        '<a href="news_details.html?id=' + data[i].id + '">',
                        '<!--时间-->',
                        '<div class="company-dang-conts-time">',
                        '<ul>',
                        '<li class="year">' + data[i].temp2 + '</li>',
                        '<li class="otherTime">' + data[i].temp3 + '</li>',
                        '</ul>',
                        '</div>',
                        '<!--内容-->',
                        '<div class="company-dang-conts-details">',
                        '<h5>',
                        data[i].title,
                        '</h5>',
                        '<p>',
                        data[i].temp1,
                        '</p>',
                        '</div>',
                        '</a>',
                        '</li>'].join("");
                    }
                    $("#hyxwnews_view").html(str);

                },
                error: function (e) {
                    console.error(e);
                }
            });
        }
        get_hyxwnews(hyxwpage_index);

        var mtbdpage_index = 1;
        var mtbdpage_size = 8;
        var mtbdpage_count = 0;

        function get_mtbdnews(mtbdpage_index) {
            if (mtbdpage_count != 0) {
                if (mtbdpage_index > mtbdpage_count) mtbdpage_index = mtbdpage_count
                else if (mtbdpage_index <= 1) mtbdpage_index = 1;
            }

            $.ajax({
                url: "http://139.129.33.42/admin/GetNewsServlet",
                data: {
                    type: 8,
                    currentPage: mtbdpage_index,
                    pageSize: mtbdpage_size
                },
                type: "get",
                success: function (data) {
                    mtbdpage_count = Math.ceil(data[0].pageCount / mtbdpage_size);

                    $("#mtbdpage_count").html(mtbdpage_count);
                    $("#mtbdpage_index").html(mtbdpage_index);

                    $("#mtbdlast").attr("href", "javascript:get_mtbdnews(" + data[0].pageCount + ");mtbdpage_index = " + data[0].pageCount + ";")
//                  console.info(data)
                    data = data[0].date;
                    var str = "";
                    for (var i = 0; i < data.length; i++) {
                        str += ['<li>',
                        '<a href="news_details.html?id=' + data[i].id + '">',
                        '<!--时间-->',
                        '<div class="company-dang-conts-time">',
                        '<ul>',
                        '<li class="year">' + data[i].temp2 + '</li>',
                        '<li class="otherTime">' + data[i].temp3 + '</li>',
                        '</ul>',
                        '</div>',
                        '<!--内容-->',
                        '<div class="company-dang-conts-details">',
                        '<h5>',
                        data[i].title,
                        '</h5>',
                        '<p>',
                        data[i].temp1,
                        '</p>',
                        '</div>',
                        '</a>',
                        '</li>'].join("");
                    }
                    $("#mtbdnews_view").html(str);

                },
                error: function (e) {
                    console.error(e);
                }
            });
        }
        get_mtbdnews(mtbdpage_index);
    </script>
</body>

</html>